package com.siwei.mes.entity.sync.erp;

import com.siwei.mes.common.validator.bus.SyncGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;


/**
 * 客户信息表(ErpCustomer)实体类
 *
 * @author linzi
 * @since 2024-07-25 15:26:42
 */
@Data
@Accessors(chain = true)
@Table(name = "erp_customer")
@ApiModel(value = "ErpCustomer", description = "客户信息表")
public class ErpCustomer implements Serializable {
    private static final long serialVersionUID = -47086719929279835L;
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "客户信息表主键ID", name = "id")
    private Long id;
    /**
     * 协会唯一标识
     */
    @Column(name = "laboratory_id")
    @ApiModelProperty(value = "协会唯一标识", name = "laboratoryId")
    private String laboratoryId;
    /**
     * 客户编号
     */
    @Column(name = "customer_no")
    @ApiModelProperty(value = "客户编号", name = "customerNo")
    @NotBlank(groups = {SyncGroup.class}, message = "客户编号为空")
    private String customerNo;
    /**
     * 客户名称
     */
    @Column(name = "customer_name")
    @ApiModelProperty(value = "客户名称", name = "customerName")
    @NotBlank(groups = {SyncGroup.class}, message = "客户名称为空")
    private String customerName;
    /**
     * 客户地址
     */
    @Column(name = "customer_address")
    @ApiModelProperty(value = "客户地址", name = "customerAddress")
    private String customerAddress;
    /**
     * 法定代表人
     */
    @Column(name = "legal_person")
    @ApiModelProperty(value = "法定代表人", name = "legalPerson")
    private String legalPerson;
    /**
     * 法定委托人
     */
    @Column(name = "consigner")
    @ApiModelProperty(value = "法定委托人", name = "consigner")
    private String consigner;
    /**
     * 联系人
     */
    @Column(name = "linkman")
    @ApiModelProperty(value = "联系人", name = "linkman")
    private String linkman;
    /**
     * 联系电话
     */
    @Column(name = "link_phone")
    @ApiModelProperty(value = "联系电话", name = "linkPhone")
    private String linkPhone;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;
    /**
     * 是否删除  1-删除
     */
    @Column(name = "is_del")
    @ApiModelProperty(value = "是否删除  1-删除", name = "isDel")
    private Integer isDel;

    @Column(name = "is_upload")
    @ApiModelProperty(value = "是否上传协会 1-上传 0-未上传")
    private Integer isUpload;

    @Column(name = "error_msg")
    @ApiModelProperty(value = "上传错误错误信息")
    private String errorMsg;
}
